package com.epam.weblibrary.service.order;

import com.epam.weblibrary.entities.book.Book;
import com.epam.weblibrary.entities.order.Order;
import com.epam.weblibrary.entities.user.User;

import java.util.List;

/**
 * Created by Iurii_Miedviediev on 9/17/2014.
 */
public interface OrderService {
    List<Order> findAll();
    List<Order> findByUser(User user);
    Order createOrder(List<Book> cart, User user);
    Order find(Long id);
    byte[] createQrPdfDocument(Long id);
}
